<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>订单详情</title>
    <%@include file="/pages/common/head.jsp"%>

    <script type="text/javascript">

        //页面加载完成之后
        $(function () {
            $("#return").click(function () {
            });
        })
    </SCRIPT>

</head>
<body>

<div id="header">
    <img class="logo_img" alt="" src="static/img/logo.gif" >
    <div>
        <a href="#" id="return">返回</a>
    </div>
</div>


<div id="main">

    <table>
        <tr>
            <td>商品名称</td>
            <td>数量</td>
            <td>单价</td>
            <td>金额</td>
        </tr>

        <%--		如果购物车非空才输出下面页面--%>
            <c:forEach items="${requestScope.orders}" var="orders">
                <tr>
                    <td>${orders.name}</td>
                    <td>${orders.count}</td>
                    <td>${orders.price}</td>
                    <td>${orders.totalPrice}</td>
                </tr>
            </c:forEach>


    </table>




</div>

<%@include file="/pages/common/footer.jsp"%>
</body>
</html>